<template>
	<view>
	 <!-- 实现Log打印 -->
		<button @click = "onLog()">console.log</button>
		<button @click = "ondeug()">console.debug</button>
		<button @click = "oninfo()">console.info</button>
		<button @click = "onwarn()">console.warn</button>
		<button @click = "onError()">console.erro</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'打印日志',
				name:'kangkang'
			}
		},
		methods: {
			onLog(){
				//常规写法
				console.log("onLog()-->" + this.title);
				//clog
				console.log("clog");
				//clogv
				console.log('this.title: ',this.title);
				//,
				console.log('this.title: '+this.title);
				console.log('this.title: ',this.title,this.name);
				
				
			},
			onError(){
				console.error("this is erro message");
				try{
					
				}catch(e){
					console.error("catch" + e)
				}
			}
		}
	}
</script>

<style>

</style>
